import { createRouter, createWebHashHistory } from 'vue-router'


const routes = [
 {path:'/',redirect:'/home'},
 {path:'/home',component:()=>import("@/views/Home/Home.vue")},
 {path:'/cate',component:()=>import("@/views/Cate/Cate.vue")},
 {path:'/cart',component:()=>import("@/views/Cart/Cart.vue")},
 {path:'/login',component:()=>import("@/views/Login/Login.vue")},
]

const router = createRouter({
  history: createWebHashHistory(),
  routes
})

export default router;
